import { defineStore } from "../pinia";
import { ref } from "vue";

export const useTodoStore = defineStore("todo", () => {
  // setup 同组件的setup，我们可直接将组件中的setup拿过来就可以
  const todos = ref(0);

  return {
    todos,
  };
});
